jQuery(function($){
	var popup = null;
	$("a.termino-glosario").hover(
		function(){
			if (popup != null) popup.remove();
			var offset = $(this).offset();
			offset.top += $(this).outerHeight();
			popup =
				$('<div class="popup"></div>')
					.css("position", "absolute")
					.css("left", offset.left+"px")
					.css("top", offset.top+"0px")
					.appendTo("body");
			$($(this).attr("href"))
				.next("dd")
				.children()
				.clone()
				.appendTo(popup);
		},function(){
			if (popup != null) popup.remove();
			popup = null;
		}
	);
});
